package com.kongl.lottery.info.entity;

import lombok.Data;

import javax.persistence.*;
import java.util.List;

@Entity
@Data
@Table(name = "ballhistory")
public class BallHistory {
    @Id
    private String code;
    private String name;
    private String date;
    private String week;
    private String red;
    private String blue;
    private Long sales;
    private Long poolmoney;
    private String content;

    //记录开奖信息
    @OneToMany(cascade = CascadeType.ALL,fetch = FetchType.EAGER,mappedBy = "code")
    private List<PrizeGrade> prizeGrades;
}
